package com.itheima.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.bean.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.dto.DishDto;

/**
* @author 海关监管和对方
* @description 针对表【dish(鑿滃搧绠＄悊)】的数据库操作Service
* @createDate 2024-05-06 10:13:07
*/
public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDto dishDto);

    R<Page<Dish>> pageR(Page<Dish> dishPage, LambdaQueryWrapper<Dish> wrapper);

    //为了分页显示categoryName
    R showDishDto(Page<Dish> dishPage, LambdaQueryWrapper<Dish> wrapper);

    DishDto getMess(long id);

    void updateWithFlavro(DishDto dishDto);
}
